import { http, jumpExport } from '@/utils/http/axios';

// 获取分销记录详情列表
export function List(params) {
  return http.request({
    url: '/distributionDetail/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除分销记录详情
export function Delete(params) {
  return http.request({
    url: '/distributionDetail/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑分销记录详情
export function Edit(params) {
  return http.request({
    url: '/distributionDetail/edit',
    method: 'POST',
    params,
  });
}

// 获取分销记录详情指定详情
export function View(params) {
  return http.request({
    url: '/distributionDetail/view',
    method: 'GET',
    params,
  });
}

// 导出分销记录详情
export function Export(params) {
  jumpExport('/distributionDetail/export', params);
}